package com.yuanqiao.interfaceforlc.test.controller;

import com.yuanqiao.interfaceforlc.test.service.testservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/test")
public class testcontroller {

@Resource
private testservice testservice1;

@RequestMapping("/testsql")
@ResponseBody
public String testsql(){

   List list=testservice1.testsql();
   System.out.println("list===="+list);
    return "3333";
}
}
